﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using SnakeWalk.Interfaces;

namespace SnakeWalk.Painter
{
    public class BaitDraw : IBaitPaint
    {
        private Graphics gp;
        private Point position;
        private Size size;

        public BaitDraw(Graphics gp, Point position, Size size)
        {
            this.gp = gp;
            this.position = position;
            this.size = size;
        }

        public void Appear(Point position)
        {
            this.position = position;
            Paint();
        }

        private void Paint()
        {
            gp.FillRectangle(Brushes.Black, position.X, position.Y, size.Width, size.Height);
            gp.DrawRectangle(new Pen(Brushes.Black), position.X, position.Y, size.Width, size.Height);
        }
    }
}
